-
Notifications
You must be signed in to change notification settings - Fork 37
[TAN-5736] Remove dead code related to legacy file classes #12406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
7ffe0f6 to
8136f25
Compare
|
The file_attachments_as_legacy_files_spec.rb overlapped with other acceptance tests, especially idea_files_spec.rb and project_files_spec.rb. This commit removes the redundant file and integrates the relevant parts into the existing test files to reduce duplication.
1cf7599 to
2ee9f34
Compare
jamesspeake
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me generally, but with a couple of questions
|
|
||
| resource 'EventFile' do | ||
| explanation 'File attachments.' | ||
| resource 'File attachment as legacy EventFile' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need legacy here? Could we not just say File attachments for Events or is there further work and the whole files controller is considered legacy and will be removed at some point?
| end | ||
|
|
||
| describe do | ||
| # [TODO] Currently, the +Files::FileUploader+ allows all file extensions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this going to be fixed? Feels like it's a security hole to not tighten this
Not much shorter in terms of the number of lines because I have a fairly spacious coding style 🥲
Changelog
Technical
WebApi::V1::FilesControllerandWebApi::V1::IdeasController.